import request from '@/utils/request'

// 获取子卡列表
export function getList(params) {
  return request({
    url: '/app/ky_black/admin/black-card/sub/list',
    method: 'get',
    params
  })
}

// 新增子卡
export function addSubCard(data) {
  return request({
    url: '/app/ky_black/admin/black-card/sub/create',
    method: 'post',
    data
  })
}

// 更新子卡
export function updateSubCard(data) {
  return request({
    url: '/app/ky_black/admin/black-card/sub/update',
    method: 'post',
    data
  })
}

// 删除子卡
export function deleteSubCard(data) {
  return request({
    url: '/app/ky_black/admin/black-card/sub/delete',
    method: 'post',
    data
  })
}

// 更新子卡状态
export function updateSubCardStatus(data) {
  return request({
    url: '/app/ky_black/admin/black-card/sub/update-status',
    method: 'post',
    data
  })
} 